<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title><?php echo $title ?></title>
	    <meta name="keywords" content="<?php echo image_alt( $keyword ); ?>" />
	    <meta name="description" content="<?php echo image_alt( $description ); ?>" />
	    <meta content="default,index,follow" name="Robots" />
	    <meta content="default,index,follow,snippet,archive" name="Googlebot" />
	    <meta content="" name="Abstract"/>
	    <meta content="no" http-equiv="imagetoolbar" /> 
		<link type="text/css" rel="stylesheet" href="<?php echo path_theme(); ?>css/duclinh.css" />
		<script type="text/javascript" src="<?php echo path_theme(); ?>js/jquery.js"></script>
		<script type="text/javascript" src="<?php echo path_theme(); ?>js/easySlider1.5.js"></script>
		<script src="<?php echo path_theme(); ?>superfish-master/js/hoverIntent.js"></script>
		<script src="<?php echo path_theme(); ?>superfish-master/js/superfish.js"></script>
		<link rel="stylesheet" href="<?php echo path_theme(); ?>superfish-master/css/superfish.css" media="screen">
		<script>

		(function($){ //create closure so we can safely use $ as alias for jQuery

			$(document).ready(function(){

				// initialise plugin
				var example = $('#example').superfish({
					//add options here if required
				});

				// buttons to demonstrate Superfish's public methods
				$('.destroy').on('click', function(){
					example.superfish('destroy');
				});

				$('.init').on('click', function(){
					example.superfish();
				});

				$('.open').on('click', function(){
					example.children('li:first').superfish('show');
				});

				$('.close').on('click', function(){
					example.children('li:first').superfish('hide');
				});
			});
		})(jQuery);
		</script>		
	</head>
	<body>
		<div id="hedear_bar">
		</div>
		<div class="container">
			<div class="header">
				<div class="new_header">
					<h1 class="hdLogoCMS">						
							<a class="logo_left"><img src="<? echo path_theme()?>images/logo.gif" alt="" /></a>
							<a class="logo_right"><img src="<? echo path_theme()?>images/logo-right.gif" alt="" /></a>
					</h1>
					<div class="boxSearch">
						<form action="<?php echo base_url() ?>search" method="post">
							<input class="txtSearch"  type="text" onkeyup="initTyper(this);" maxlength="255" style="width: 200px; height:15px name="q" value="<?php echo $this->keyw ?>" />
							<button class="ui-search ui-button ui-buttonCta ui-buttonFit-l lfloat sel-search-button" name="submit" type="submit"><span class="icon i-invertedSearchLoupe">Tìm kiếm</span></button>
						</form>
					</div>
					<div style="float:right;">
						<div>
							<span>Giỏ hang</span>
							<span><img src="<? echo path_theme()?>images/my-bag.gif"/></span>
							</div>				
						<div>Facebook | GOOGLE</div>				
										
					</div>
				</div>
			</div>
		<div class="menutop">	
			<ul class="sf-menu menu_top_header" id="example">
				<li class="current">
					<a href="http://localhost/watchshop/">
						<img src="<? echo path_theme()?>images/home.gif"/>
					</a>
				<?
				foreach($catpros as $catitem){
					if($catitem['id_parent']==0){
				?>
				<li>
				<a><? echo $catitem['name']?></a>
				
					<ul>
					<?
						foreach($catpros as $catitem2){
							if($catitem['id']==$catitem2['id_parent']){
					?>
					
						<li>
							
							<a href="<? echo link_cat($catitem2['id'],$catitem2['name'],$catitem['name'])?>">
								<? echo $catitem2['name']?> 
							</a>
						</li>
						<?}
						}?>
					</ul>
				</li>
				<?}
				}?>
		</div>
				<div class="top_banner">
			<ul>
				<li class="top_banner_left">
					<img src="<? echo path_theme()?>images/1.gif" alt="" />
				</li>
				<li class="top_banner_center">
					<img src="<? echo path_theme()?>images/2.gif" alt="" />
				</li>
				<li class="top_banner_right">
					<img src="<? echo path_theme()?>images/3.gif" alt="" />
				</li>
			</ul>
		</div>
				